/**
 * 权限请求接口
 */
import { AxiosResponse } from "axios";
import service from "@/api";
import { SYSTEM_CONFIG } from "@/config/system";
import { SERVICE_CONFIG } from "../_base";

/**
 * 判断是否有权限key
 * @param pagePointId 是否有权限
 */
export function havePagePointAuthority(pagePointId: string): Promise<AxiosResponse<boolean>> {
  let url = SERVICE_CONFIG.ORG + "/org/ManagerService/havePagePointAuthority";
  return service.get(url, { params: { appId: SYSTEM_CONFIG.APP_ID, pagePointId } });
}
